import request from '@/utils/request'

// 查询规格内容列表
export function listValues(query) {
  return request({
    url: '/share/values/list',
    method: 'get',
    params: query
  })
}

// 查询规格内容详细
export function getValues(valuesId) {
  return request({
    url: '/share/values/' + valuesId,
    method: 'get'
  })
}

// 新增规格内容
export function addValues(data) {
  return request({
    url: '/share/values',
    method: 'post',
    data: data
  })
}

// 修改规格内容
export function updateValues(data) {
  return request({
    url: '/share/values',
    method: 'put',
    data: data
  })
}

// 删除规格内容
export function delValues(valuesId) {
  return request({
    url: '/share/values/' + valuesId,
    method: 'delete'
  })
}

// 导出规格内容
export function exportValues(query) {
  return request({
    url: '/share/values/export',
    method: 'get',
    params: query
  })
}